var fs = require("fs");

fs.readFile('C:\\Users\\Administrator\\Desktop\\abc.txt', function (err, data) {
    if (err) {
        return console.error(err);
    }
    console.log("异步读取文件" + data.toString());
});

const data = fs.readFileSync('C:\\Users\\Administrator\\Desktop\\abc.txt');
console.log("同步读取文件" + data.toString());
console.log('success');


